package com.hades.example.java.refactoring.after.c11.c11_7_extract_superclass;

public class Example {
    public static void main(String[] args) {
        Employee employee = new Employee("name_A", "1", 90);
        Department department = new Department("Department_1");
        department.addStaff(employee);
        department.addStaff(new Employee("name_B", "2", 100));
        System.out.println(department.getAnnualCost());
        System.out.println(department.getName());

        System.out.println(employee.getAnnualCost());
        System.out.println(employee.getName());
    }
}